package com.topboya.linker.model.response;

import java.io.Serializable;
import java.util.List;

public class DeptUserResponse extends BaseResponse implements Serializable {

        private List<Data> data;

        public void setData(List<Data> data) {
            this.data = data;
        }
        public List<Data> getData() {
            return data;
        }

     public class Data implements Serializable {

        private String id;
         private String parentIds;
        private String isNewRecord;
        private String name;
        private String sort;
        private String type;
        private PrimaryPerson primaryPerson;
        private DeputyPerson deputyPerson;
        private List<DeptUserList> deptUserList;
        private List<SubDeptList> subDeptList;
        private String parentId;
        public void setId(String id) {
            this.id = id;
        }
        public String getId() {
            return id;
        }

        public void setIsNewRecord(String isNewRecord) {
            this.isNewRecord = isNewRecord;
        }
        public String getIsNewRecord() {
            return isNewRecord;
        }

        public void setParentIds(String parentIds) {
            this.parentIds = parentIds;
        }
        public String getParentIds() {
            return parentIds;
        }

        public void setName(String name) {
            this.name = name;
        }
        public String getName() {
            return name;
        }

        public void setSort(String sort) {
            this.sort = sort;
        }
        public String getSort() {
            return sort;
        }

        public void setType(String type) {
            this.type = type;
        }
        public String getType() {
            return type;
        }

        public void setPrimaryPerson(PrimaryPerson primaryPerson) {
            this.primaryPerson = primaryPerson;
        }
        public PrimaryPerson getPrimaryPerson() {
            return primaryPerson;
        }

        public void setDeputyPerson(DeputyPerson deputyPerson) {
            this.deputyPerson = deputyPerson;
        }
        public DeputyPerson getDeputyPerson() {
            return deputyPerson;
        }

        public void setDeptUserList(List<DeptUserList> deptUserList) {
            this.deptUserList = deptUserList;
        }
        public List<DeptUserList> getDeptUserList() {
            return deptUserList;
        }

        public void setParentId(String parentId) {
            this.parentId = parentId;
        }
        public String getParentId() {
            return parentId;
        }

         public List<SubDeptList> getSubDeptList() {
             return subDeptList;
         }

         public void setSubDeptList(List<SubDeptList> subDeptList) {
             this.subDeptList = subDeptList;
         }

         @Override
         public String toString() {
             return "Data{" +
                     "id='" + id + '\'' +
                     ", parentIds='" + parentIds + '\'' +
                     ", isNewRecord='" + isNewRecord + '\'' +
                     ", name='" + name + '\'' +
                     ", sort='" + sort + '\'' +
                     ", type='" + type + '\'' +
                     ", primaryPerson=" + primaryPerson +
                     ", deputyPerson=" + deputyPerson +
                     ", deptUserList=" + deptUserList +
                     ", subDeptList=" + subDeptList +
                     ", parentId='" + parentId + '\'' +
                     '}';
         }
     }

    public class PrimaryPerson implements Serializable{

        private String id;
        private String isNewRecord;
        private String loginFlag;
        private String admin;
        private String roleNames;
        public void setId(String id) {
            this.id = id;
        }
        public String getId() {
            return id;
        }

        public void setIsNewRecord(String isNewRecord) {
            this.isNewRecord = isNewRecord;
        }
        public String getIsNewRecord() {
            return isNewRecord;
        }

        public void setLoginFlag(String loginFlag) {
            this.loginFlag = loginFlag;
        }
        public String getLoginFlag() {
            return loginFlag;
        }

        public void setAdmin(String admin) {
            this.admin = admin;
        }
        public String getAdmin() {
            return admin;
        }

        public void setRoleNames(String roleNames) {
            this.roleNames = roleNames;
        }
        public String getRoleNames() {
            return roleNames;
        }

        @Override
        public String toString() {
            return "PrimaryPerson{" +
                    "id='" + id + '\'' +
                    ", isNewRecord='" + isNewRecord + '\'' +
                    ", loginFlag='" + loginFlag + '\'' +
                    ", admin='" + admin + '\'' +
                    ", roleNames='" + roleNames + '\'' +
                    '}';
        }
    }

    public class DeputyPerson implements Serializable{

        private String id;
        private String isNewRecord;
        private String loginFlag;
        private String admin;
        private String roleNames;
        public void setId(String id) {
            this.id = id;
        }
        public String getId() {
            return id;
        }

        public void setIsNewRecord(String isNewRecord) {
            this.isNewRecord = isNewRecord;
        }
        public String getIsNewRecord() {
            return isNewRecord;
        }

        public void setLoginFlag(String loginFlag) {
            this.loginFlag = loginFlag;
        }
        public String getLoginFlag() {
            return loginFlag;
        }

        public void setAdmin(String admin) {
            this.admin = admin;
        }
        public String getAdmin() {
            return admin;
        }

        public void setRoleNames(String roleNames) {
            this.roleNames = roleNames;
        }
        public String getRoleNames() {
            return roleNames;
        }

        @Override
        public String toString() {
            return "DeputyPerson{" +
                    "id='" + id + '\'' +
                    ", isNewRecord='" + isNewRecord + '\'' +
                    ", loginFlag='" + loginFlag + '\'' +
                    ", admin='" + admin + '\'' +
                    ", roleNames='" + roleNames + '\'' +
                    '}';
        }
    }


    public class DeptUserList implements Serializable{

        private String id;
        private String isNewRecord;
        private String loginName;
        private String name;
        private String loginFlag;
        private String officeId;
        private String admin;
        private String roleNames;
        public void setId(String id) {
            this.id = id;
        }
        public String getId() {
            return id;
        }

        public void setIsNewRecord(String isNewRecord) {
            this.isNewRecord = isNewRecord;
        }
        public String getIsNewRecord() {
            return isNewRecord;
        }

        public void setLoginName(String loginName) {
            this.loginName = loginName;
        }
        public String getLoginName() {
            return loginName;
        }

        public void setName(String name) {
            this.name = name;
        }
        public String getName() {
            return name;
        }

        public void setLoginFlag(String loginFlag) {
            this.loginFlag = loginFlag;
        }
        public String getLoginFlag() {
            return loginFlag;
        }

        public void setOfficeId(String officeId) {
            this.officeId = officeId;
        }
        public String getOfficeId() {
            return officeId;
        }

        public void setAdmin(String admin) {
            this.admin = admin;
        }
        public String getAdmin() {
            return admin;
        }

        public void setRoleNames(String roleNames) {
            this.roleNames = roleNames;
        }
        public String getRoleNames() {
            return roleNames;
        }

        @Override
        public String toString() {
            return "DeptUserList{" +
                    "id='" + id + '\'' +
                    ", isNewRecord='" + isNewRecord + '\'' +
                    ", loginName='" + loginName + '\'' +
                    ", name='" + name + '\'' +
                    ", loginFlag='" + loginFlag + '\'' +
                    ", officeId='" + officeId + '\'' +
                    ", admin='" + admin + '\'' +
                    ", roleNames='" + roleNames + '\'' +
                    '}';
        }
    }
    public class SubDeptList implements Serializable{

        private String id;
        private String isNewRecord;
        private String parentIds;
        private String name;
        private String sort;
        private String type;
        private PrimaryPerson primaryPerson;
        private DeputyPerson deputyPerson;
        private List<SubDeptList> subDeptList;
        private List<DeptUserList> deptUserList;
        private String parentId;
        public void setId(String id) {
            this.id = id;
        }
        public String getId() {
            return id;
        }

        public void setIsNewRecord(String isNewRecord) {
            this.isNewRecord = isNewRecord;
        }
        public String getIsNewRecord() {
            return isNewRecord;
        }

        public void setParentIds(String parentIds) {
            this.parentIds = parentIds;
        }
        public String getParentIds() {
            return parentIds;
        }

        public void setName(String name) {
            this.name = name;
        }
        public String getName() {
            return name;
        }

        public void setSort(String sort) {
            this.sort = sort;
        }
        public String getSort() {
            return sort;
        }

        public void setType(String type) {
            this.type = type;
        }
        public String getType() {
            return type;
        }

        public void setPrimaryPerson(PrimaryPerson primaryPerson) {
            this.primaryPerson = primaryPerson;
        }
        public PrimaryPerson getPrimaryPerson() {
            return primaryPerson;
        }

        public void setDeputyPerson(DeputyPerson deputyPerson) {
            this.deputyPerson = deputyPerson;
        }
        public DeputyPerson getDeputyPerson() {
            return deputyPerson;
        }

        public void setDeptUserList(List<DeptUserList> deptUserList) {
            this.deptUserList = deptUserList;
        }
        public List<DeptUserList> getDeptUserList() {
            return deptUserList;
        }

        public void setParentId(String parentId) {
            this.parentId = parentId;
        }
        public String getParentId() {
            return parentId;
        }

        public String isNewRecord() {
            return isNewRecord;
        }

        public void setNewRecord(String newRecord) {
            isNewRecord = newRecord;
        }

        public List<SubDeptList> getSubDeptList() {
            return subDeptList;
        }

        public void setSubDeptList(List<SubDeptList> subDeptList) {
            this.subDeptList = subDeptList;
        }

        @Override
        public String toString() {
            return "SubDeptList{" +
                    "id='" + id + '\'' +
                    ", isNewRecord='" + isNewRecord + '\'' +
                    ", parentIds='" + parentIds + '\'' +
                    ", name='" + name + '\'' +
                    ", sort='" + sort + '\'' +
                    ", type='" + type + '\'' +
                    ", primaryPerson=" + primaryPerson +
                    ", deputyPerson=" + deputyPerson +
                    ", subDeptList=" + subDeptList +
                    ", deptUserList=" + deptUserList +
                    ", parentId='" + parentId + '\'' +
                    '}';
        }
    }
    @Override
    public String toString() {
        return "DeptUserResponse{" +
                "data=" + data +
                '}';
    }
}
